<div class="col-sm-12 mt20">
    
    <div class="panel">
      <div class="panel-body">
        <div class="col-sm-3">
          <input type="text" class="form-control" placeholder="优惠名称" ng-model="searchform.name">
        </div>
        <div class="col-sm-3">
            <div class="form-group">
                <select class="form-control" ng-model="searchform.discount_type" >
                    <option value="">请选择折扣类型</option>
                    <option ng-value="1">百分比折扣</option>
                    <option ng-value="2">金额折扣</option>
                    
                </select>
          </div>
        </div>
        <div class="col-sm-2">
          <button class="btn btn-info search btn-block" ng-click="tour_list(1)">立即搜索</button>
        </div>
        <div class="col-sm-2">
          <button class="btn btn-info search btn-block" ng-click="setDiscount()">添加优惠类型</button>
        </div>
        
      </div>
    </div>
  
    <div class="panel">
      <div class="panel-body">
        <table class="table table-striped table-bordered dataTable table-condensed tree_table">
          <thead>
            <tr>
              <th class="col-md-1 text-center">优惠名称</th>
              <th class="col-md-1 text-center">校验内容</th>
              <th class="col-md-1 text-center">校验类型</th>
              <th class="col-md-1 text-center">优惠限制次数</th>
              <th class="col-md-1 text-center">折扣类型</th>
              <th class="col-md-1 text-center">优惠信息</th>
              <th class="col-md-1 text-center"></th>
            </tr>
          </thead>
          <tbody>
            <tr ng-repeat="info in list">
              <td class="text-center">{{info.name}}</td>
              <td class="text-center">{{info.verification_code}}</td>
              <td class="text-center">{{info.verification_type == '0'? '身份证号': '位置信息'}}</td>
              <td class="text-center">{{info.discount_limit_num}}</td>
              <td class="text-center">{{info.discount_type==1?'百分比折扣':'金额折扣'}}</td>
              <td class="text-center">{{info.discount_type==1?info.discount_proportion+'%':info.discount_price+'元'}}</td>
              <td class="text-center">
                <button type="button" class="btn btn-info btn-xs" ng-click="setDiscount(info)">修改</button>
                <button type="button" class="btn btn-danger btn-xs" ng-click="delete(info.id)">删除</button>
              </td>
            </tr>
          </tbody>
        </table>
      </div>
  
      <div class="text-right" style="background-color: white; margin-right: 30px">
        <pagination total-items="totalItems" ng-model="currentPage" ng-change="search(currentPage)" previous-text="上一页"
          next-text="下一页" first-text="首页" last-text="尾页" max-size="5" boundary-links="true" rotate="false"
          items-per-page="itemsPerPage" class="m-t-none m-b"></pagination>
      </div>
  
    </div>
  </div>